import request from "@/utils/request.js"

const baseApi = 'jtp'

// 报销申请 - 获取全部的的报销申请单
export function allReimburse(data) {
	return request({
		module: baseApi,
		url: '/',
		data,
		trCode: 'PROXY00051'
	})
}

// 报销申请 - 获取报销中的报销申请单
export function reimburseing(data) {
	return request({
		module: baseApi,
		url: '/',
		data: data,
		trCode: 'PROXY00052'
	})
}

// 报销申请 - 获取待报销的报销申请单
export function waitingReimburse(data) {
	return request({
		module: baseApi,
		url: '/',
		data,
		trCode: 'PROXY00050'
	})
}

// 查看报销页面 待报销详情
export function reimburseDetail(data) {
	return request({
		module: baseApi,
		url: '/',
		data,
		trCode: 'PROXY00047'
	})
}


// 查看报销页面 除了待报销和已撤回详情
export function reimburseingDetail(data) {
	return request({
		module: baseApi,
		url: '/',
		data,
		trCode: 'PROXY00126'
	})
}

// 查询银行卡
export function findBankCard(data) {
	return request({
		module: baseApi,
		url: '/',
		data,
		trCode: 'PROXY01031'
	})
}
// 更新银行卡
export function updateBankCard(data) {
	return request({
		module: baseApi,
		url: '/',
		data,
		trCode: 'PROXY01030'
	})
}
// 删除银行卡
export function deleteBankCard(data) {
	return request({
		module: baseApi,
		url: '/',
		data,
		trCode: 'PROXY01029'
	})
}
// 新增银行卡
export function addBankCard(data) {
	return request({
		module: baseApi,
		url: '/',
		data,
		trCode: 'PROXY01028'
	})
}

// （待报销、修改报销）进入下一步页面获取数据
export function nextReimburse(data) {
	return request({
		module: baseApi,
		url: '/',
		data,
		trCode: 'PROXY00049'
	})
}

// 提交报销
export function submitReimburse(data) {
	return request({
		module: baseApi,
		url: '/',
		data,
		trCode: 'PROXY00046'
	})
}

// 撤回报销
export function withdrawReimburse(data) {
	return request({
		module: baseApi,
		url: '/',
		data,
		trCode: 'PROXY00046'
	})
}

// 差报销审批人列表
export function getApproverList(data) {
	return request({
		module: baseApi,
		url: '/',
		data,
		trCode: 'PROXY01006'
	})
}

// 查看补助详情
export function alwDetailData(data){
	return request({
		module: baseApi,
		url: '/',
		data,
		trCode: 'PROXY00140'
	})
}

// 获取图片-预览
export function getAlwImgs(data) {
	return request({
		module:baseApi,
		url:'/',
		data,
		trCode: 'PROXY00150'
	})
}

// 获取所有的银行list
export function getBankName(data){
	return request({
		module:baseApi,
		url:'/',
		data,
		trCode:'PROXY01037'
  })
}

// 超标申请列表 - all
export function findOverStandardApprovePage() {
    return request({
		module: baseApi,
		showLoading: true,
		url: '/',
		data: {'current':1,'size':100,taskType:"3" },
		trCode: 'PROXY00024'
	})
}

// 扣减
export function getReduceAmt(data) {
	return request({
		module:baseApi,
		url:'/',
		data,
		trCode: 'PROXY00061'
	})
}